package com.uh.microservice.core.controller;

import com.uh.microservice.core.script.JScript;
import com.uh.microservice.core.util.SqlParser;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 缓存管理服务
 * <p>全局缓存管理服务</p>
 *
 * @author cailm
 * @version $Id: com.innotek.microservice.admin.sys.controller.CatchController,v 0.1 2018/8/30 10:26 Exp $$
 */
@RestController
@RequestMapping("cache")
public class CacheController extends BaseSupport {

    /**
     *  缓存清理方法
     */
    @RequestMapping("/ruleclear")
    public String appStartSave() {
        //首先清除 sql 缓存
        SqlParser.getInstance().clearCache();

        //清除js缓存
        JScript.getInstance().clearCache();

        return output();
    }


}
